CompareImage

Returns True or False to indicate if an application image captured during playback matches an expected image within an accuracy percentage.

Syntax

CompareImage(MinimumAccuracy, "ExpectedImagePath", Left, Top, Width, Height)

Arguments

Argument Description
MinimumAccuracy Minimum percentage of accuracy required to return True.
ExpectedImagePath Path to the expected image used to compare with the application during playback (e.g., C:\\Images\\myimage.png).
Left Integer pixel value of the left side of the rectangle that contains area to verify.
Top Integer pixel value of the top side of the rectangle that contains area to verify.
Width Integer pixel value of the width of the rectangle that contains area to verify.
Height Integer pixel value of the height of the rectangle that contains area to verify.

Return value

Value Description
True Contents of image area match within the accuracy percentage.
False Contents of image area do not match within the accuracy percentage.

Example

imageResult = CompareImage(100, "C:\\Testing\\Images\\logo.png", 0, 0, 797, 578)